package com.itic.web.mem.cashorder.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.itic.web.mem.cashorder.service.AppPerformanceService;
import com.itic.web.qo.TokenData;
import com.itic.web.ro.ResResult;

@Controller
@RequestMapping(value = "/app/cashorder")
public class AppCashOrderController {
	
	@Autowired
	private AppPerformanceService performanceService;
	
	//获取我的业绩信息
	@RequestMapping(value = "/getList")
	@ResponseBody
	public ResResult getList(TokenData data){
		return  performanceService.getList(data);
	}
	
	//提现申请
	@RequestMapping(value = "/applynow")
	@ResponseBody
	private ResResult applyNow(TokenData data,String price,String payAccount){
		ResResult result = performanceService.applyNow(data,price,payAccount);
		return result;
	}
	
}
